require.config({
	paths: {
		"jquery" : "jquery-1.11.3",
		"common" : "common",
		"cookie" : "cookie",
		"ajax" : "ajax"
	}
});


require(["jquery","common","cookie","ajax"],function($,common,cookie,ajax){
	$(".header").load("header.html",function(){common.fn();});
	$(".footer").load("footer.html",function(){common.fn();});
	$(".side").load("side.html",function(){common.fn();});
	
	
	//加载图片

//function loading(){
//	ajax("pic/img.txt",function(str){
//		var json1 = JSON.parse(str);
//		var str = "";
//		for(var i = 0;i < json1.length;i ++){
//			str += "<li><a href='#'><img src='"+json1[i].img+"'></a></li>";				
//		}	
//		$(".goods ul").html(str);
//	});			
//}
//loading();
//	
	/*改变商品边框颜色*/
	$(".goods ul li").each(function(){
		$(this).mouseover(function(){
			$(this).css("border-color","pink");
		});
		$(this).mouseout(function(){
			$(this).css("border-color","#fff");
		});
	});
});